from django.db import models
from django.contrib import admin

# class BBSPost(models.Model):
#     title = models.CharField(max_length=150)
#     content = models.TextField()
#     timestamp = models.DateTimeField()
#
# class BBSPostAdmin(admin.ModelAdmin):
#     list_display = ('title', 'content', 'timestamp')
#
# admin.site.register(BBSPost, BBSPostAdmin)

class Message(models.Model):
    title = models.CharField(max_length=150)
    content = models.TextField()
    timestamp = models.DateTimeField()
    author = models.TextField(default='匿名')
